package com.xiexin.orderset.mapper;

import com.xiexin.orderset.domain.Ordersetting;

import java.util.Date;
import java.util.List;

/**
 * 预约设置Mapper接口
 * 
 * @author xieixin
 * @date 2022-03-25
 */
public interface OrdersettingMapper 
{
    /**
     * 查询预约设置
     * 
     * @param id 预约设置主键
     * @return 预约设置
     */
    public Ordersetting selectOrdersettingById(Long id);

    /**
     * 查询预约设置列表
     * 
     * @param ordersetting 预约设置
     * @return 预约设置集合
     */
    public List<Ordersetting> selectOrdersettingList(Ordersetting ordersetting);

    /**
     * 新增预约设置
     * 
     * @param ordersetting 预约设置
     * @return 结果
     */
    public int insertOrdersetting(Ordersetting ordersetting);

    /**
     * 修改预约设置
     * 
     * @param ordersetting 预约设置
     * @return 结果
     */
    public int updateOrdersetting(Ordersetting ordersetting);

    /**
     * 删除预约设置
     * 
     * @param id 预约设置主键
     * @return 结果
     */
    public int deleteOrdersettingById(Long id);

    /**
     * 批量删除预约设置
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOrdersettingByIds(Long[] ids);

    List<Ordersetting> getOrderDate7Days();

    Ordersetting getOrdersetingByDate(Date orderDate);
}
